/*
 * $LastChangedDate: 2007-06-17 19:43:25 +0200 (Sun, 17 Jun 2007) $
 * $LastChangedRevision: 192 $
 * $LastChangedBy: david $
 */


#ifndef _SERVER_H_
#define _SERVER_H_

#include "Thread.h"
#include "FileLock.h"
#include <map>

class FileLock;

class Server : public Thread 
{
public:
	Server();
	virtual ~Server();

protected:
	virtual void run();
	const int PORT;
	FileLock* getFileLock(std::string path);

	std::map<std::string, FileLock*> locks;
};

#endif /* _SERVER_H_ */
